package com.atguigu.gulimall.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class UserLoginVo {

    @NotEmpty(message = "登录账号不能为空")
    private String loginacct;

    @NotEmpty(message = "登录密码不能为空")
    @Length(min = 6,max = 18,message = "密码在6-18位字符")
    private String password;

}
